package cz.spock.exception;

/**
 * subclass for spock runtime exception
 * 
 * invalid input exception should be thrown when input data are
 * - missing
 * - in bad format
 * 
 * if this exception is thrown, required action can not be done, controller must react with error message
 * 
 * error code can be used for closer error description (within error message) (see SpockRuntimeException)
 * 
 * @author miso
 *
 */
@SuppressWarnings("serial")
public class InvalidInputException extends SpockRuntimeException {
    
    public InvalidInputException(String msg) {
        super(msg);
        log.severe(msg);
    }
    
    public InvalidInputException(String msg, int errCode) {
        super(msg, errCode);
        log.severe(msg + " (code:" + errCode + ")");
    }

}
